package demo1;

interface A{
    void text1();
    public static void text2 (){
        System.out.println("静态方法");
    }
    public default void text3(){
        System.out.println("default方法");
    }
}
class Demo implements A{

    @Override
    public void text1() {
        System.out.println("重写text1");
    }

    @Override
    public void text3() {
        System.out.println("重写default");
    }
}
public class Text {
    public static void main(String[] args) {
        Demo demo=new Demo();
        demo.text1();
        demo.text3();
        A.text2();

    }
}
